package com.boot.security.model.vo;

import cn.hutool.core.lang.UUID;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;

@Data
@SuperBuilder
@NoArgsConstructor
public class SourceKey {

    private String id;

    private LocalDateTime time;

    public static SourceKey create() {
        return SourceKey.builder()
                .id(UUID.fastUUID().toString())
                .time(LocalDateTime.now())
                .build();
    }
}
